{% extends "base.html" %}

{% block title %}添加车辆 - 车辆管理系统{% endblock %}

{% block content %}
<div class="row justify-content-center">
    <div class="col-md-6">
        <div class="card">
            <div class="card-header">
                <h4 class="text-center">添加车辆</h4>
            </div>
            <div class="card-body">
                <form method="POST" action="{{ url_for('add_vehicle') }}">
                    <div class="mb-3">
                        <label for="plate_number" class="form-label">车牌号</label>
                        <input type="text" class="form-control" id="plate_number" name="plate_number" required placeholder="如：京A12345">
                    </div>
                    <div class="mb-3">
                        <label for="vehicle_type" class="form-label">车辆类型</label>
                        <select class="form-select" id="vehicle_type" name="vehicle_type" required>
                            <option value="" selected disabled>请选择车辆类型</option>
                            <option value="小型轿车">小型轿车</option>
                            <option value="SUV">SUV</option>
                            <option value="MPV">MPV</option>
                            <option value="皮卡">皮卡</option>
                            <option value="跑车">跑车</option>
                            <option value="其他">其他</option>
                        </select>
                    </div>
                    <div class="mb-3">
                        <label for="color" class="form-label">车辆颜色</label>
                        <select class="form-select" id="color" name="color" required>
                            <option value="" selected disabled>请选择车辆颜色</option>
                            <option value="白色">白色</option>
                            <option value="黑色">黑色</option>
                            <option value="红色">红色</option>
                            <option value="蓝色">蓝色</option>
                            <option value="灰色">灰色</option>
                            <option value="银色">银色</option>
                            <option value="绿色">绿色</option>
                            <option value="黄色">黄色</option>
                            <option value="棕色">棕色</option>
                            <option value="其他">其他</option>
                        </select>
                    </div>
                    <div class="d-flex justify-content-between">
                        <a href="{{ url_for('user_dashboard') }}" class="btn btn-secondary">返回</a>
                        <button type="submit" class="btn btn-primary">添加车辆</button>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
{% endblock %} 